import redis
import os
from urllib.parse import quote
REDIS_PASSWORD = os.environ["REDIS_PASSWORD"]
redis_con = redis.Redis(host='localhost', port=6379, password=REDIS_PASSWORD)
print("编码后：",quote(REDIS_PASSWORD))
print(redis_con.ping())


